package com.leadingsoft.pwxk.converter;

import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.AbstractConverter;
import com.leadingsoft.pwxk.dto.AirDrainPermitDto;
import com.leadingsoft.pwxk.model.AirDrainPermit;

/**
 * @author: lipan 2018年5月15日
 * @description: ()
 * 
 */

@Component 
public class AirDrainPermitConverter extends AbstractConverter<AirDrainPermit, AirDrainPermitDto> {
	

	@Override
	protected AirDrainPermitDto toDtoActual(AirDrainPermit model) {
		// TODO Auto-generated method stub

		AirDrainPermitDto dto = new AirDrainPermitDto();
		dto.setId(model.getId());
		dto.setDataid(model.getDataid());

		dto.setAirwrwcode(model.getAirwrwcode());
		dto.setAirwrwname(model.getAirwrwname());
		dto.setIsmonth(model.getIsmonth());
		dto.setNofiveyear(model.getNofiveyear());
		dto.setNofouryear(model.getNofiveyear());
		dto.setNooneyear(model.getNooneyear());
		dto.setNothreeyear(model.getNothreeyear());
		dto.setNotwoyear(model.getNotwoyear());
		dto.setPromiseval(model.getPromiseval());
		dto.setQcfiveyear(model.getQcfiveyear());
		dto.setQcfouryear(model.getQcfouryear());
		dto.setQconeyear(model.getQconeyear());
		dto.setQcthreeyear(model.getQcthreeyear());
		dto.setQctwoyear(model.getQctwoyear());
		dto.setWaterwrwcode(model.getWaterwrwcode());
		dto.setWaterwrwname(model.getWaterwrwname());
		dto.setWrwid(model.getWrwid());
		dto.setWrwname(model.getWrwname());
		dto.setWrylxid(model.getWrylxid());
		dto.setXkdraincode(model.getXkdraincode());
		dto.setXkemissioncon(model.getXkemissioncon());
		dto.setXkemissionspeed(model.getXkemissionspeed());
		dto.setXkemissiontslimitname(model.getXkemissiontslimitname());
		dto.setXkfiveyear(model.getXkfiveyear());
		dto.setXkfouryear(model.getXkfouryear());
		dto.setXkoneyear(model.getXkoneyear());
		dto.setXkthreeyear(model.getXkthreeyear());
		dto.setXktwoyear(model.getXktwoyear());

		return dto;
	}

	public void copyProperties(AirDrainPermit model, AirDrainPermitDto dto) {
		// model.setId(dto.getId());
		// model.setDataid(dto.getDataid());

		model.setAirwrwcode(dto.getAirwrwcode());
		model.setAirwrwname(dto.getAirwrwname());
		model.setIsmonth(dto.getIsmonth());
		model.setNofiveyear(dto.getNofiveyear());
		model.setNofouryear(dto.getNofiveyear());
		model.setNooneyear(dto.getNooneyear());
		model.setNothreeyear(dto.getNothreeyear());
		model.setNotwoyear(dto.getNotwoyear());
		model.setPromiseval(dto.getPromiseval());
		model.setQcfiveyear(dto.getQcfiveyear());
		model.setQcfouryear(dto.getQcfouryear());
		model.setQconeyear(dto.getQconeyear());
		model.setQcthreeyear(dto.getQcthreeyear());
		model.setQctwoyear(dto.getQctwoyear());
		model.setWaterwrwcode(dto.getWaterwrwcode());
		model.setWaterwrwname(dto.getWaterwrwname());
		model.setWrwid(dto.getWrwid());
		model.setWrwname(dto.getWrwname());
		model.setWrylxid(dto.getWrylxid());
		model.setXkdraincode(dto.getXkdraincode());
		model.setXkemissioncon(dto.getXkemissioncon());
		model.setXkemissionspeed(dto.getXkemissionspeed());
		model.setXkemissiontslimitname(dto.getXkemissiontslimitname());
		model.setXkfiveyear(dto.getXkfiveyear());
		model.setXkfouryear(dto.getXkfouryear());
		model.setXkoneyear(dto.getXkoneyear());
		model.setXkthreeyear(dto.getXkthreeyear());
		model.setXktwoyear(dto.getXktwoyear());
	}

}
